//
//  main.m
//  auditorias
//
//  Created by Mauro on 7/11/13.
//  Copyright (c) 2013 Antilope. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char *argv[])
{
    @autoreleasepool {
        
        
        //NSString *language = [[NSLocale preferredLanguages] objectAtIndex:0];
        NSString *locale = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode];
        //The default locale will be AR
        if ([locale isEqualToString:@"BO"]) {
            [[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects:@"es_BO", @"es", nil] forKey:@"AppleLanguages"];
        }
        
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}
